#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>

int main()
{
	char arr[10] = { 0 };
	scanf("%s", arr);
	int len = strlen(arr);
	int i, j;
	char* p = arr;
	for (i = 0;i < len;i++)
	{
		if (arr[i] >= 'w' && arr[i] <= 'z')
			printf("%c",arr[i] - 22);
		else if (arr[i] >= 'W' && arr[i] <= 'Z')
			printf("%c",arr[i] - 22);
		else if (arr[i] >= 'a' && arr[i] <= 'v')
			printf("%c",arr[i] + 4);
		else if (arr[i] >= 'A' && arr[i] <= 'V')
			printf("%c", arr[i] + 4);
		else
			printf("%c", arr[i]);
	}
		return 0;
}
